home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 April
/
CHIP CD (4 - 2007).iso
/
beeld
/
3d
/
ArtOfIllusion24-Mac.dmg
/
Art of Illusion
/
ArtOfIllusion.jar
/
bsh
/
commands
/
getBshPrompt.bsh
< prev
next >
Wrap
Text File
|
2005-05-23
|
532b
|
25 lines
/**
Get the value to display for the bsh interactive prompt.
This command checks for the variable bsh.prompt and uses it if set.
else returns "bsh % "
<p/>
Remember that you can override bsh commands simply by defining the method
in your namespace. e.g. the following method displays the current working
directory in your prompt:
<p/>
<pre>
String getBshPrompt() {
return bsh.cwd + " % ";
}
</pre>
*/
String getBshPrompt()
{
if ( bsh != void && bsh.prompt != void )
return bsh.prompt;
else
return "bsh % ";
}